package com.tinem.platform.client.security;

import com.tinem.platform.module.pojo.vo.security.verification.code.VerificationReq;
import com.tinem.platform.module.pojo.vo.security.verification.code.VerificationRes;
import com.tinem.platform.module.pojo.vo.security.verification.code.GenerateReq;
import com.tinem.platform.module.pojo.vo.security.verification.code.GenerateRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className VerificationCodeClient
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-29 10:00
 */
@FeignClient("platform-cloud-service-security")
@RequestMapping("/verification/code")
public interface VerificationCodeClient {


    @PostMapping("/{channel}/generate.api")
    @ResponseBody GenerateRes generate(@PathVariable(name = "channel") String channel, @RequestBody GenerateReq generateReq);

    @PostMapping("verification.api")
    @ResponseBody VerificationRes verification(@RequestBody VerificationReq verificationReq);
}
